package cn.lj.domain;

import java.util.Date;

/**
 * @author lj
 * @Description: 预约图书
 * @date 2020-12-04 13:31
 * @QQ 851477108
 */

public class Appointment {
    private Long bookId;
    private Long studentId;
    //预约时间
    private Date appointmentDate;

    //书和学生是多对一关系
    private Book book;

    public Appointment() {
    }

    public Appointment(Long bookId, Long studentId, Date appointmentDate) {
        this.bookId = bookId;
        this.studentId = studentId;
        this.appointmentDate = appointmentDate;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Date getAppointmentDate() {
        return appointmentDate;
    }

    public void setAppointmentDate(Date appointmentDate) {
        this.appointmentDate = appointmentDate;
    }

    @Override
    public String toString() {
        return "Appointment{" +
                "bookId=" + bookId +
                ", studentId=" + studentId +
                ", appointmentDate=" + appointmentDate +
                ", book=" + book +
                '}';
    }
}
